package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Event_Step", description = "事件步骤表")
@TableName(value = "Event_Step")
public class EventStep extends FBaseEntity implements Serializable {


    
    @ApiModelProperty("事件实体表ID")
    @TableField(value = "categoryId")
    private Long categoryId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("步骤名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "name")
    private String name;
    
    @ApiModelProperty("步骤序号")
    @TableField(value = "stepNum")
    private Long stepNum;
    
    @NotNull(message="[触发类型 0 手动 1 自动]不能为空")
    @ApiModelProperty("触发类型 0 手动 1 自动")
    @TableField(value = "conditionType")
    private Long conditionType;
    
    @ApiModelProperty("触发延迟时间")
    @TableField(value = "conditionTime")
    private Long conditionTime;
    
    @ApiModelProperty("触发条件 只在自动触发下触发")
    @TableField(value = "conditionDesc")
    private Long conditionDesc;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("执行语句(只支持存储过程)")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "execProcName")
    private String execProcName;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("触发角色列表")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "roleIds")
    private String roleIds;
    
    @ApiModelProperty("拍照标识")
    @TableField(value = "picFlag")
    private Long picFlag;






}

